<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
    <head>
        <title>免费直播回放</title>
        <script type="text/javascript" src="http://player.polyv.net/script/polyvplayer.min.js"></script>
    </head>
    <body>
        <th:block th:if="${playType}=='POLYV'">
            <div id="play-box"></div>
            <script th:inline="javascript" type="text/javascript">
                polyvObject('#play-box').videoPlayer({
                    'width':'100%',
                    'height':'0',
                    'autoplay':'1',
                    'vid' : [[${playUrl}]]
                });
            </script>
        </th:block>
        <th:block th:if="${playType} !='POLYV'">
            <script type="text/javascript" th:src="${playUrl}"></script>
        </th:block>
    </body>
</html>